package rhc.taskSchedule.entity.taskSchedule;

import org.springframework.data.mongodb.core.mapping.Field;

import rhc.taskSchedule.entity.TaskSchedule;
public class CronForeverTaskSchedule extends TaskSchedule{

	public static final String COLUMN_CRON="cron";
	
	public CronForeverTaskSchedule() {
		super(ScheduleType.CRON_FOREVER.typeCode);
	}
	
	public CronForeverTaskSchedule(String scheduleTypeCode){
		super(scheduleTypeCode);
	}
	
	/**
	 * 表达式
	 */
	@Field(value=COLUMN_CRON)
	private String cron;

	public String getCron() {
		return cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}

}
